package com.spring.cloud.module.common.exception;

import com.spring.cloud.module.util.Constants;
import org.apache.logging.log4j.Level;

public class AppArgumentException extends BaseExcepiton {

    public static final int CODE = Constants.RESPONSE_CODE_PARAMETER_ERROR;

    AppArgumentException(int code, String msg, Throwable e) {
        super(code, msg, e);
    }

    AppArgumentException(int code, String msg) {
        super(code, msg);
    }

    AppArgumentException(int code, String msg, Level level) {
        super(code, msg, level);
    }

    AppArgumentException(int code, String msg, Level level, Throwable e) {
        super(code, msg, level, e);
    }

    AppArgumentException(String msg, Throwable e) {
        super(CODE, msg, e);
    }

    AppArgumentException(String msg) {
        super(CODE, msg);
    }

    AppArgumentException(String msg, Level level) {
        super(CODE, msg, level);
    }

    AppArgumentException(String msg, Level level, Throwable e) {
        super(CODE, msg, level, e);
    }
}
